package cn.szsys.integration.dto;

import com.alibaba.fastjson2.JSONObject;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 人企投资-企业关联信息响应结果
 * @author Ryan
 * @since 2025-05-17
 **/
@Data
public class InvestmentRelateResDTO implements Serializable {

    @JsonProperty("appKey")
    private String appKey;
    @JsonProperty("body")
    private BodyDTO body;
    @JsonProperty("sign")
    private String sign;
    @JsonProperty("ticket")
    private String ticket;
    @JsonProperty("timestamp")
    private Long timestamp;
    @JsonProperty("version")
    private Integer version;

    @NoArgsConstructor
    @Data
    public static class BodyDTO {
        @JsonProperty("msg")
        private String msg;
        @JsonProperty("code")
        private Integer code;
        @JsonProperty("data")
        private DataDTO data;

        @NoArgsConstructor
        @Data
        public static class DataDTO {
            @JsonProperty("result")
            private Integer result;
            @JsonProperty("queryResult")
            private JSONObject queryResult;
            @JsonProperty("resultMsg")
            private String resultMsg;

        }
    }
}
